<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset={$charset}">
<title>Request List</title>
</head>
<body>
申請状況
<form action="{$base}/list" method="post">
<p>
{html_options name=status options=$status_opts selected=$status_opt}
<input type="hidden" name=csrf value="{$csrf}">
<input type="submit" value="更新"></p>
</form>
<a href="{$urlMenu}">メニュー</a>
<hr>
申請物資一覧(全{$page->totalItemCount}件)
<ol start={$offset+1}>
{foreach from=$requests item=request key=id name=loop1}
<li>{$request.name|escape} x {$request.count|escape}</li>
{/foreach}
</ol>
{if isset($page->previous)}<a href="{$base}/list/index/page/{$page->previous}">前</a>{/if}
{if isset($page->next)}<a href="{$base}/list/index/page/{$page->next}">次</a>{/if}
{foreach from=$requests item=request key=id name=loop2}
<hr />
<p>{$id}件目
<a href="{$base}/list/detail/id/{$id}">詳細</a>
<br />
申請者:{$request.requester_id|escape}<br />
連絡先:{$request.mail_address|escape}<br />
申請日:<br />
{$request.date|date_format:"%Y/%m/%d %T"}<br />
申請物資: {$request.name|escape}<br />
数量: {$request.count|escape}<br />
申請状態: {$request.req_status|escape}<br />
コメント数: {$request.num_comment}
</p>
{/foreach}
{if isset($page->previous)}<a href="{$base}/list/index/page/{$page->previous}">前</a>{/if}
{if isset($page->next)}<a href="{$base}/list/index/page/{$page->next}">次</a>{/if}
</body>
</html>